import {DashboardIcon} from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/order',
    component: Layout,
    redirect: '/order/lease-list',
    name: 'order',
    meta: {
      title: '订单管理',
      icon: DashboardIcon,
    },
    children: [
      {
        path: 'purchase-list',
        name: 'PurchaseList',
        component: () => import('@/pages/order/purchase-list/index.vue'),
        meta: {title: '采购订单'},
      },
      {
        path: 'lease-list',
        name: 'LeaseList',
        component: () => import('@/pages/order/lease-list/index.vue'),
        meta: {title: '租赁订单'},
      },
      //{
      //  path: 'second-list',
      //  name: 'SecondList',
      //  component: () => import('@/pages/order/second-list/index.vue'),
      //  meta: {title: '二手交易订单'},
      //},
      //{
      //  path: 'recovery-list',
      //  name: 'RecoveryList',
      //  component: () => import('@/pages/order/recovery-list/index.vue'),
      //  meta: {title: '回收订单'},
      //},
    ],
  },
];
